<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style>
<script language="javascript" type="text/javascript" src="jquery-1.4.2.min.js"></script>

th, td {width:80px;min-width:80px;border:1px solid #ccc;}
th {width:120px;}
td {height:40px;font-size:14px;}
span{font-family:"MS Serif", "New York", serif; font-weight:bold; padding-left:10px;}
.zt{background-color:#000; width:400px; height:50px; line-height:50px; margin-left:-3px; text-align:center;font-size:30px;}
</style>
</head>
<body>
<table width="100%" border="0" id="dayinquyu">
<tr>
<td>
订单号：<?php echo $orderNum['order_sn'].'-'.$order_item_id;?>|货号：<?php echo $order['product_sn'];?>|<font color="red">商品名称：<?php echo $orderfigure['product_name']?></font>
</div>
<br />
<br />
<div>Order Id 订单号:<span><?php echo $orderNum['order_sn'].'-'.$order_item_id;?></span></div>
<?php if($font_1): ?><div>Text(line1) 文本第一行:<span><?php echo $font_1;?></span></div><?php endif;?>
<?php if($font_2): ?><div>Text(line2) 文本第二行:<span><?php echo $font_2;?></span></div><?php endif;?>
<?php if($font_zt): ?><div>Style 字体:<span><?php echo $font_zt;?></span></div><?php endif;?>
<?php if($font_color): ?><div>Color 颜色:<span><?php echo $font_color;?></span></div><?php endif;?>
<?php if($font_1): ?><div class="zt" style='font-family:"<?php echo $font_zt;?>";color:#000000;<?php /*echo substr($font_color, strpos($font_color, '#'));*/?>;'><?php echo $font_1;?></div><?php endif;?>
<?php if($font_2): ?><div class="zt" style='font-family:"<?php echo $font_zt;?>";color:#000000;<?php /*echo substr($font_color, strpos($font_color, '#'));*/?>;'><?php echo $font_2;?></div><?php endif;?>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
</td>
</tr>
</table>
<div><input type="button" class="button" onclick="JsPrint();" value="打印"</div>
</body>
</html>
<script type="text/javascript">
function JsPrint(){
    document.body.innerHTML=document.getElementById('dayinquyu').innerHTML;
    window.print();
}

</script>
